-- GENERATED SPELL FOR [Frenzyheart Hunter] --


function spell0_28079(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(52270,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28079', 652, 1)
end

function spell1_28079(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15547,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28079', 632, 1)
end

function Sorts_28079(pUnit, Event)
local choix_sorts_28079 = math.random(0, 1)
if choix_sorts_28079 == 0 then
pUnit:RegisterEvent('spell0_28079', 1, 1)
end
if choix_sorts_28079 == 1 then
pUnit:RegisterEvent('spell1_28079', 1, 1)
end
end

function mob28079_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28079', math.random(1500, 3000), 1)
end

function mob28079_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28079_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28079_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28079, 1, 'mob28079_Action')
RegisterUnitEvent(28079, 2, 'mob28079_Leave')
RegisterUnitEvent(28079, 3, 'mob28079_Kill')
RegisterUnitEvent(28079, 4, 'mob28079_Die')
